<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
<!--数组语法，多个值使用“，”分割-->
  <h2 :style="[size,color]">{{ msg }}</h2>
</div>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
  new Vue({
    el: "#app",
    data: {
      msg: "hello,world",
      size:{fontSize:"100px"},
      color:{color: "red"},
    }
  })
</script>
</body>
</html>